const a = async function (...args) {
  const [d, l] = args.slice(-2);
  const {
    origin,
    owner: { memory },
  } = d;
  const {
    dc: { close, http },
    xe: { get, set },
  } = l;
  const data = get(origin, "1785949436933836801");
  if (!data) return;
  set(memory, "modal", true);
  console.log("modal button click: ", d, l, data);
  await http.post({ url: "/nyk/program/modifyProgram", data });
  const { guid, tagList = [] } = data;
  if (tagList.length) {
    await http.post({
      url: "/nyk/tag/insertTableTag",
      data: { guid, idList: tagList, type: "PROGRAM" },
    });
  } else {
    await http.post({
      url: "/nyk/tag/deleTableTag",
      data: { guid, type: "PROGRAM" },
    });
  }

  close();
};
